package com.ruoyi.common.model.excel;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * ExcelImport
 *
 * @author ZhengJun
 * @since 2023/5/22 22:05
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ExcelImportError<T> extends ExcelImportBase {

    /** 错误信息 */
    private List<String> messageList;

    /** 数据 */
    private T data;

    /** 表格名称 */
    private String sheetName;

    public ExcelImportError(List<String> messageList, T data, String sheetName, Integer orderNum) {
        this.messageList = messageList;
        this.data = data;
        this.sheetName = sheetName;
        this.setOrderNum(orderNum);
    }
}
